package com.itlong.cloud.POJO.PO;

import com.itlong.cloud.annotation.ItlField;
import com.itlong.cloud.annotation.ItlTables;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;


/**
 * <desc>
 *      微信用户openid关联信息表。
 * </desc>
 *
 * @createDate 2019/05/15
 */
@ItlTables("wechat_user_openid_info")
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper=true)
public class WeChatUserOpenIdInfoPO extends BasePO implements Serializable {

    @ItlField(value = "user_open_id",logicKey = "key")
    private String userOpenId;        //逻辑主键

    @ItlField("user_id")
    private String userId;          //用户ID

    @ItlField("mini_open_id")
    private String miniOpenId;      //小程序用户openid

    @ItlField("official_open_id")
    private String officialOpenId;  //公众号用户openid

    @ItlField("official_nick_name")
    private String officialNickName;    //公众号用户昵称

    @ItlField("union_id")
    private String unionId;         //用户的unionid 同一用户的该字段在公众号和小程序中是相同的

}